package org.example.firstproject.entity;

import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
public class User implements Serializable {

    @Serial
    private static final long serialVersionUID = 72397093638917066L;


    public User(String username,String password,String [] roles){
        this.username = username;
        this.password = password;
        this.roles = roles;
    }

    private String username;

    private String password;

    private String[] roles;
}